/*
 * @Author: yxfan
 * @Date: 2021-09-20 15:57:10
 * @LastEditTime: 2025-05-12 21:21:09
 * @Description: route config
 */
const routeConfig = [
    {
        path: '/',
        component: '@/layouts/index',
        routes: [
            {
                path: '/demo',
                name: '案例',
                routes: [
                    {
                        path: '/demo/dragPic',
                        component: '@/pages/demo/DragPic',
                        name: '拖拽图片',
                    },
                    {
                        path: '/demo/customChart',
                        component: '@/pages/demo/CustomChart',
                        name: '自定义图表',
                    },
                    {
                        path: '/demo/language',
                        component: '@/pages/demo/Language',
                        name: '多语言',
                    },
                    {
                        path: '/demo/virtualList',
                        component: '@/pages/demo/VirtualList',
                        name: '虚拟列表',
                    },
                    {
                        path: '/demo/canvas',
                        component: '@/pages/demo/Canvas',
                        name: 'canvas',
                    },
                    {
                        path: '/demo/xterm',
                        component: '@/pages/demo/Xterm',
                        name: 'xterm',
                    },
                    {
                        path: '/demo/editTree',
                        component: '@/pages/demo/EditTree',
                        name: '可编辑树',
                    },
                    {
                        path: '/demo/Transfer',
                        component: '@/pages/demo/Transfer',
                        name: 'Transfer',
                    },
                    {
                        path: '/demo/ZombieChildren',
                        component: '@/pages/demo/ZombieChildren',
                        name: '僵尸节点',
                    },
                    {
                        path: '/demo/Markdown',
                        component: '@/pages/demo/Markdown',
                        name: 'Markdown',
                    },
                    {
                        path: '/demo/indexDb',
                        component: '@/pages/demo/IndexDB',
                        name: 'IndexDB',
                    },
                    {
                        path: '/demo/antdLocale',
                        component: '@/pages/demo/AntdLocale',
                        name: 'antd多语言',
                    },
                    {
                        path: '/demo/keepAlive',
                        component: '@/pages/demo/KeepAlive',
                        name: 'keepAlive',
                    },
                    {
                        path: '/demo/diff',
                        component: '@/pages/demo/Diff',
                        name: 'Diff',
                    },
                    {
                        path: '/demo/diff2html',
                        component: '@/pages/demo/Diff2html',
                        name: 'diff2html',
                    },
                    {
                        path: '/demo/rc-overflow',
                        component: '@/pages/demo/RcOverflow',
                        name: 'rc-overflow',
                    },
                    {
                        path: '/demo/ssh',
                        component: '@/pages/demo/xterm-ssh',
                        name: 'ssh',
                    },
                    {
                        path: '/demo/xmind',
                        component: '@/pages/demo/xmind',
                        name: 'xmind',
                    },
                    {
                        path: '/demo/iframe',
                        component: '@/pages/demo/iframe',
                        name: 'iframe',
                    },
                    {
                        path: '/demo/MonacoEditor',
                        component: '@/pages/demo/MonacoEditor',
                        name: 'MonacoEditor',
                    },
                    {
                        path: '/demo/tree-demo',
                        component: '@/pages/demo/TreeDemo',
                        name: 'TreeDemo',
                    },
                    {
                        path: '/demo/table-input',
                        component: '@/pages/demo/TableInput/demo',
                        name: 'TableInput',
                    },
                    {
                        path: '/demo/color-picker',
                        component: '@/pages/demo/ColorPicker',
                        name: '颜色选择器',
                    },
                ],
            },
            {
                path: '/test',
                name: '测试',
                routes: [
                    {
                        path: '/test/useSelector',
                        component: '@/pages/test/useSelector',
                        name: 'useSelector更新',
                    },
                    {
                        path: '/test/useContext',
                        component: '@/pages/test/useContext',
                        name: 'useContext更新',
                    },
                    {
                        path: '/test/useLayoutEffect',
                        component: '@/pages/test/useLayoutEffect',
                        name: 'useLayoutEffect',
                    },
                    {
                        path: '/test/redux',
                        component: '@/pages/test/redux',
                        name: 'redux',
                    },
                    {
                        path: '/test/overflowTabs',
                        component: '@/pages/test/OverflowTabs',
                        name: 'overflowTabs',
                    },
                ],
            },
        ],
    },
];
export default routeConfig;
